package com.zr.dao.order;

import com.zr.vo.order.OrderGoods;
import java.util.List;

/**
 * 订单货物处理
 * @author huangguilong
 */
public interface OrderGoodsDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderGoods record);

    int insertSelective(OrderGoods record);

    OrderGoods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderGoods record);

    int updateByPrimaryKey(OrderGoods record);

    /**
     * 查询货物列表
     * @param goodsOrderId
     * @return List<OrderGoods>
     * @author huangguilong
     */
    List<OrderGoods> selectGoodsListByOrderId(String goodsOrderId);

    /**
     * 删除所有未生成委托订单的货物信息
     * @return int
     * @author huangguilong
     */
    int deleteAllByOrderId(String goodsOrderId);

    /**
     * 补充数据库中当前订单货物的订单编号
     * @return int
     * @author huangguilong
     */
    int updateOrderId(String goodsOrderId);
}